package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Setmeal;

import java.util.List;
import java.util.Map;

public interface SetmealService {
    void add(Setmeal setmeal, Integer[] checkgroupIds);

    PageResult findByPage(QueryPageBean queryPageBean);

    void deleteByIdandimg(Integer id,String img);

    Setmeal findById(Integer setmealId);

    List<Integer> findCheckGroupIdsBySetmealId(Integer setmealId);

    void edit(Setmeal setmeal, Integer[] checkgroupIds);

    List<Setmeal> getAllSetmeal();

    //查询每个套餐的订单数量
    List<Map<String, Object>> findSetmealCount();
}
